  //获取url参数
  export const queryURLParams = (url) => {
    let pattern = /[?&]([^=#]+)=([^&#]*)/g; // 定义更灵活的正则表达式
    let params = {}; // 定义参数对象
    let match;
    while ((match = pattern.exec(url))) {
      params[decodeURIComponent(match[1])] = decodeURIComponent(match[2]);
    }
    return params;
  }
  